﻿using System;
using System.Collections.Generic;
using System.Text;

namespace YmSoft.Kblog.Model
{
    /// <summary>
    /// K_Login:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class K_Login
    {
        public K_Login()
        { }
        #region Model
        private int _id;
        private string _loginname;
        private string _loginpass;
        private int? _role = 0;
        private DateTime? _logindate;
        private DateTime? _createdate = DateTime.Now;
        /// <summary>
        /// 自动编号
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 登录用户名
        /// </summary>
        public string LoginName
        {
            set { _loginname = value; }
            get { return _loginname; }
        }
        /// <summary>
        /// 登录密码 （md5）
        /// </summary>
        public string LoginPass
        {
            set { _loginpass = value; }
            get { return _loginpass; }
        }
        /// <summary>
        /// 用户角色
        /// </summary>
        public int? Role
        {
            set { _role = value; }
            get { return _role; }
        }
        /// <summary>
        /// 上次登录时间
        /// </summary>
        public DateTime? LoginDate
        {
            set { _logindate = value; }
            get { return _logindate; }
        }
        /// <summary>
        /// 用户注册时间
        /// </summary>
        public DateTime? CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        #endregion Model

    }
}
